package org.aurora.module.user.infra.dal.mysql.converter;

import org.aurora.framework.boot.data.common.converter.DataConverter;
import org.aurora.module.user.domain.entity.User;
import org.aurora.module.user.infra.dal.mysql.dataobject.UserDO;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;
import org.mapstruct.factory.Mappers;

/**
 * UserConverter
 * <pre>
 * description: 用户数据与领域对象转换器
 * create date: 2025-03-22 17:16:00
 * </pre>
 *
 * @author cao.yong
 */
@Mapper(unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface UserConverter extends DataConverter<UserDO, User> {
    UserConverter INSTANCE = Mappers.getMapper(UserConverter.class);
}
